package com.central.user.service;

import com.central.common.model.LoginAppUser;
import com.central.common.model.SysUserAccount;
import com.central.common.service.ISuperService;

/**
 * @author: ly
 * @date: 2020/11/17 5:08 下午
 * @email: 664162337@qq.com
 */
public interface ISysUserAccountService extends ISuperService<SysUserAccount> {

    /**
     * 通过登录名获取账号信息
     * @param username
     * @return
     */
    LoginAppUser findByUsername(String username);

    /**
     * 通过用户id获取
     * @param userId
     * @return
     */
    LoginAppUser findByUserId(String userId);

    boolean isSupperAdminUser(String username);
}
